作者:SufiaLi | 来源:互联网 | 2023-05-18 07:43
Usinghttp:ubilabs.github.comgeocompleteexamplesdraggable.htmlasanexample.以http:ubilabs.g
Using http://ubilabs.github.com/geocomplete/examples/draggable.html as an example.
以http://ubilabs.github.com/geocomplete/examples/draggable.html为例。
jQuery("#geocomplete").bind("geocode:dragged", function(event, latLng){
jQuery("input[name=lat]").val(latLng.lat());
jQuery("input[name=lng]").val(latLng.lng());
});
I am able to get the marker position in form of lat lng after the marker is dragged. But I am not able to get current location of the marker after being dragged.
在拖动标记后,我能够以lat lng的形式获得标记位置。但是在拖动后我无法获得标记的当前位置。
I want to update my location text box on the current position of marker after being dragged.
我想在拖动后更新标记当前位置的位置文本框。
3 个解决方案